Random binary search tree with equal elements

نویسنده

  • Tomi A. Pasanen
چکیده

We consider random binary search trees when the input consists of a multiset, i.e. a set with multiple occurrences of equal elements, and prove that the randomized insertion and deletion algorithms produce random search trees regardless of multiplicities; even if all the elements are equal during the tree updates, a search tree will maintain its randomness. Thus, equal elements do not degenerate a random search tree and they need not to be handled in any special way. We consider also stability of a search tree with respect to its inorder traversal and prove that the algorithms used produce stable trees. This introduces an implicit indexing of equal elements giving another proof that multiplicities do not pose problems when maintaining random binary search trees. Computing Reviews (1998)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Distances and Finger Search in Random Binary Search Trees

For the random binary search tree with n nodes inserted the number of ancestors of the elements with ranks k and `, 1 ≤ k < ` ≤ n, as well as the path distance between these elements in the tree are considered. For both quantities central limit theorems for appropriately rescaled versions are derived. For the path distance the condition ` − k → ∞ as n → ∞ is required. We obtain tail bounds and ...

متن کامل

On the Richness of the Collection of Subtrees in Random Binary Search Trees

The purpose of this paper is to settle two conjectures by Flajolet, Gourdon and Martinez ( 1996). We confirm that in a random binary tree on n nodes, the expected number of different subtrees grows indeed as 0 (n/ log n). Secondly, if K is the largest integer such that all possible shapes of subtrees of cardinality less than or equal to K occur in a random binary search tree, then we show that ...

متن کامل

Topology and inference for multi-type Yule trees

We introduce two models for multi-type random trees motivated by studies of trait dependence in the evolution of species. Our discrete time model, the multi-type ERM tree, is a generalization of Markov propagation models on a random tree generated by a binary search or ‘equal rates Markov’ mechanism. Our continuous time model, the multi-type Yule tree with mutations, is a multi-type generalizat...

متن کامل

Connecting Yule Process, Bisection and Binary Search Tree via Martingales

We present new links between some remarkable martingales found in the study of the Binary Search Tree or of the bisection problem, looking at them on the probability space of a continuous time binary branching process.

متن کامل

On the Number of Descendants and Ascendants in Random Search Trees

We consider here the probabilistic analysis of the number of descendants and the number of ascendants of a given internal node in a random search tree The performance of several important algorithms on search trees is closely related to these quantities For instance the cost of a successful search is proportional to the number of ascendants of the sought element On the other hand the probabilis...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Theor. Comput. Sci.

دوره 411  شماره 

صفحات  -

تاریخ انتشار 2010